package com.xzp.cglib_proxy;

import com.xzp.dynamic_proxy.HelloService;
import com.xzp.dynamic_proxy.HelloServiceImpl;

/**
 * 测试CGLIB动态代理
 *
 * @author briarbear
 * @blog https://briarbear.github.io
 * @create 2018-07-20-15:14
 */
public class HelloServiceMain {

    public static void main(String[] args) {
        HelloServiceCglib cglib = new HelloServiceCglib();
        HelloService service = (HelloService) cglib.getInstance(new HelloServiceImpl());

        service.sayHello("xiongzp08");
        System.err.println(service.getClass());
    }
}
